package com.xx.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class StudentDao {
    //读取配置文件中的内容
    @Value("${name}")
    private String name;
    @Value("${address}")
    private String address;

    public void StudentMg(){
        System.out.println(name+"   "+address);
    }
}
